<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			
			var arr = [1,3];
			//清空数组
// 			console.log(arr);
// 			arr.splice(0,arr.length);
// 			console.log(arr);
			
// 			console.log(arr);
// 			arr.length = 0;
// 			console.log(arr);
			
			console.log(arr);
			// arr = [];
			arr = new Array();
			console.log(arr);
		</script>
	</body>
</html>
